package com.wxtf.platform.main.contraceptives;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.wxtf.platform.interfaces.CommonsCallProvider;
import com.wxtf.platform.plugins.user.UserBean;
import com.wxtf.platform.supers.LogicBase;
import com.wxtf.platform.tools.ConstantInfoHelper;
import com.wxtf.platform.tools.AccessDataBaseUtil;
import com.wxtf.platform.tools.FormatUtil;

/**
 * <li>Title: TmaMedicineVistorMainAction.java</li>
 * <li>Project: baseplatform</li>
 * <li>Package: com.wxtf.platform.main.contraceptives</li>
 * <li>Description: 药具使用随访登记主表</li>
 * <li>Copyright: Copyright (c) 2012</li>
 * <li>Company: wxthtf Technologies </li>
 * <li>Created on Aug 21, 2012 10:29:02 AM</li>
 * 
 * @author liu_zhaojun
 * @version 1.0.0.0
 * 
 */
public class TmaMedicineVistorMainAction extends LogicBase implements CommonsCallProvider{
	private static final Log log = LogFactory.getLog(TmaMedicineVistorMainAction.class);

	public TmaMedicineVistorMainAction(String jsonArray){

	}
	
	@Override
	public Object run() {
		Object msg = "";
		try {
			if("queryPage".equals(this.getMethodName())) {
				msg = this.select(this.getLogicData());
			} else if("save".equals(this.getMethodName())) {
				msg = this.insert(this.getLogicData());
			} else if("update".equals(this.getMethodName())) {
				msg = this.update(this.getLogicData());
			} else if("delete".equals(this.getMethodName())) {
				msg = this.delete(this.getLogicData());
			} else if("selectMedicineVistor".equals(this.getMethodName())) {
				msg = this.selectMedicineVistor(this.getLogicData());
			} else if("selectTmamvdSideEffectCode".equals(this.getMethodName())) {
				msg = this.selectTmamvdSideEffectCode(this.getLogicData());
			} else if("yijiansuifang".equals(this.getMethodName())) {
				msg = this.yijiansuifang(this.getLogicData());
			} else if("selectYear".equals(this.getMethodName())) {
				msg = this.selectYear(this.getLogicData());
			} else if("selectShiYongShiJian".equals(this.getMethodName())) {
				msg = this.selectShiYongShiJian(this.getLogicData());
			} else if("detailDelete".equals(this.getMethodName())) {
				msg = this.detailDelete(this.getLogicData());
			} else {
				msg = "\"没有【" + this.getMethodName() + "】该方法\"";
			}
			if(msg == null || "[null]".equals(msg)) {
				msg = "\"\"";
			}
			if(msg.toString().startsWith("{") || msg.toString().startsWith("[")){
				return msg;
			}
			msg = ConstantInfoHelper.generateJSONString(msg.toString());
		} catch(Exception e) {
			msg = ConstantInfoHelper.generateErrorJSONString();
			log.error(e, e);
		} finally {
			this.clear();
		}
		return msg.toString();
	}
	
	/** 
	 * 描述：selectYear 往年随访
	 * @param jsonArray
	 * @return
	 * @throws Exception
	 * @CreateOn Jul 10, 2012  5:12:42 PM
	 * @author liu_zhaojun
	 */
	public Object selectYear(Object jsonArray) throws Exception {
		JSONArray array = JSONArray.fromObject(jsonArray);
		JSONObject jsonObject = JSONObject.fromObject(array.getString(0));
		String year = jsonObject.getString("year");
		String tbe_id = jsonObject.getString("tbe_id");
		StringBuffer buff = new StringBuffer(" from tma_medicine_vistor_detail a,tm_general_dictionary b,tma_medicine_vistor_main c where a.tmamvd_side_effect_code=b.tmgd_id and a.tmamvm_id=c.tmamvm_id");
		buff.append(" and c.tbe_id='").append(tbe_id).append("'");
		buff.append(" and a.tmamvd_time like '%").append(year).append("%' order by a.tmamvd_time desc");
		String countSql = "select count(*)"+buff.toString();
		String querySql = "select a.tmamvd_id,a.tmamvm_id,a.tmamvd_time,a.tmamvd_pharmacy_effect,a.tmamvd_same_pharmacy_des,b.tmgd_name,a.tmamvd_side_effect_code,a.tmamvd_treament,a.create_by"+buff.toString();
		String[] fields = {"tmamvd_id","tmamvm_id_d","tmamvd_time","tmamvd_pharmacy_effect","tmamvd_same_pharmacy_des","tmgd_name","tmamvd_side_effect_code","tmamvd_treament","create_by"};
		return AccessDataBaseUtil.query4SQLPagging(fields, countSql, querySql, this.getPage(), this.getPagesize(), null);
	}
	
	/** 
	 * 描述：selectShiYongShiJian 使用时间
	 * @param jsonArray
	 * @return
	 * @throws Exception
	 * @CreateOn Jul 10, 2012  5:12:42 PM
	 * @author liu_zhaojun
	 */
	public Object selectShiYongShiJian(Object jsonArray) throws Exception {
		JSONArray array = JSONArray.fromObject(jsonArray);
		JSONObject jsonObject = JSONObject.fromObject(array.getString(0));
		String tmamvm_id = jsonObject.getString("tmamvm_id");
		StringBuffer buff = new StringBuffer("select tmad_begin_time from tma_medicine_vistor_main");
		buff.append(" where tmamvm_id = '").append(tmamvm_id).append("'");
		List<Object> list = AccessDataBaseUtil.query4List(buff.toString(), null);
		String tmapm_begin_time = (String) (list==null?"":list.get(0));
		String now = FormatUtil.getCurentDateTime();
		SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd");
		buff = new StringBuffer("select sc_value from t_system_config where sc_key='overdueReminders'");
		List<Object> sc_key = AccessDataBaseUtil.query4List(buff.toString(), null);
		int key = sc_key==null?0:Integer.valueOf(sc_key.get(0).toString());
		int num = getMonthNum(format.parse(tmapm_begin_time), format.parse(now),key);
		UserBean user = (UserBean)this.getRequest().getSession().getAttribute("userBean");
		buff = new StringBuffer("update tma_medicine_vistor_main set ");		
		buff.append("tmamvm_lmedicine_time='").append(num).append("'")
		.append(",LAST_MODIFY_BY='").append(user.getUserId()).append("'")
		.append(",LAST_MODIFY_TIME='").append(now).append("'")
		.append(" where tmamvm_id='").append(tmamvm_id).append("'");
		AccessDataBaseUtil.executeSQLUpdate(buff.toString());
		return num;
	}

	/**
	 * 共使用多少月
	 * @param date1开始时间
	 * @param date2当前时间
	 * @return
	 */
	public int getMonthNum(Date date1,Date date2,int day) {
		Calendar cal1=Calendar.getInstance();
		cal1.setTime(date1);
		Calendar cal2=Calendar.getInstance();
		cal2.setTime(date2);
		int m1=cal1.get(2),m2=cal2.get(2);
		if (cal2.get(5)<day)
		{
			m2=cal2.get(2)-1;
		}
		if (cal1.get(5)<day)
		{
			m1=cal1.get(2)-1;
		}
		int yue = (cal2.get(1)-cal1.get(1))*12+(m2-m1);		
		return yue;
	}
	
	/** 
	 * 描述：selectTmamvdSideEffectCode 副反应
	 * @param jsonArray
	 * @return
	 * @throws Exception
	 * @CreateOn Jul 10, 2012  5:12:42 PM
	 * @author liu_zhaojun
	 */
	public Object selectTmamvdSideEffectCode(Object jsonArray) throws Exception {
		StringBuffer buff = new StringBuffer("select tmgd_id,tmgd_name from tm_general_dictionary where tmgd_type='201'");
		String[] fields = {"tmad_id","tmad_name"};
		JSONArray array = JSONArray.fromObject(AccessDataBaseUtil.query(fields ,buff.toString(), null));
		return array;		
	}
	
	/** 
	 * 描述：yijiansuifang 一键随访
	 * @param jsonArray
	 * @return
	 * @throws Exception
	 * @CreateOn Jul 10, 2012  5:12:42 PM
	 * @author liu_zhaojun
	 */
	public Object yijiansuifang(Object jsonArray) throws Exception {
		JSONArray array = JSONArray.fromObject(jsonArray);
		JSONObject jsonObject = JSONObject.fromObject(array.getString(0));		
		String tmamvm_id = jsonObject.getString("tmamvm_id");
		String tmad_begin_time = jsonObject.getString("tmad_begin_time");
		String tmamvm_lmedicine_time = jsonObject.getString("tmamvm_lmedicine_time");
		String[] yifangweiguoriqi = "".equals(jsonObject.getString("yifangweiguoriqi"))?null:jsonObject.getString("yifangweiguoriqi").split(",");
		List<String> list = new ArrayList<String>();
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM");
		SimpleDateFormat df1 = new SimpleDateFormat("yyyy-MM-dd");
		String shijian = tmad_begin_time.substring(0, tmad_begin_time.lastIndexOf("-"));
		Date curDate = df.parse(shijian);
        for(int i=0;i<Integer.valueOf(tmamvm_lmedicine_time)+1;i++){
        	Calendar cal = Calendar.getInstance();
        	cal.setTime(curDate);
        	cal.add(Calendar.MONTH, i);
        	boolean bool = true;
        	if(yifangweiguoriqi==null){
        		
        	}else{
        		String time = df.format(cal.getTime());
        		for(int j=0;j<yifangweiguoriqi.length;j++){
        			if(time.equals(yifangweiguoriqi[j].substring(0, yifangweiguoriqi[j].lastIndexOf("-")))){
                		bool = false;
                		break;
                	}
        		}
        		
        	}        	
        	if(bool){
        		String s = jsonObject.getString("tmad_begin_time");
        		String date = df1.format(new Date());
        		String c1 = df.format(cal.getTime())+"-"+date.substring(date.lastIndexOf("-")+1);
        		Date date1 = df1.parse(c1);
        		Date date2 = df1.parse(s);
        		Date date3 = null;
        		if(date2.getTime()>date1.getTime()){
        			String c2 = df.format(cal.getTime())+"-"+s.substring(s.lastIndexOf("-")+1);
        			date3 = df1.parse(c2);
        		}else{ 
        			date3 = date1;
        		}
        		String tmamvd_pharmacy_effect = jsonObject.getString("tmamvd_pharmacy_effect");
        		String tmamvd_same_pharmacy_des = jsonObject.getString("tmamvd_same_pharmacy_des");
        		String tmamvd_side_effect_code = jsonObject.getString("tmamvd_side_effect_code");
        		String tmamvd_treament = jsonObject.getString("tmamvd_treament");
        		String create_by = jsonObject.getString("create_by");
        		String time =  FormatUtil.getCurentDateTime();
        		StringBuffer buff = new StringBuffer("insert into tma_medicine_vistor_detail(TMAMVD_ID,TMAMVM_ID,TMAMVD_TIME,TMAMVD_PHARMACY_EFFECT,TMAMVD_SAME_PHARMACY_DES,TMAMVD_SIDE_EFFECT_CODE,TMAMVD_SIDE_EFFECT_DES,TMAMVD_TREAMENT,TMAMVD_MEMO,CREATE_BY,CREATE_TIME,LAST_MODIFY_BY,LAST_MODIFY_TIME) values(");
        		buff.append("'").append(AccessDataBaseUtil.getPKUUID()).append("'")
        		.append(",'").append(tmamvm_id).append("'")
        		.append(",'").append(df1.format(date3)).append("'")
        		.append(",'").append(tmamvd_pharmacy_effect).append("'")
        		.append(",'").append(tmamvd_same_pharmacy_des).append("'")
        		.append(",'").append(tmamvd_side_effect_code).append("'")
        		.append(",''")
        		.append(",'").append(tmamvd_treament).append("'")
        		.append(",''")
        		.append(",'").append(create_by).append("'")
        		.append(",'").append(time).append("'")
        		.append(",'").append(create_by).append("'")
        		.append(",'").append(time).append("')");
        		list.add(buff.toString());
        	}
        }		
		AccessDataBaseUtil.executeSQLUpdate(list);
		return "\"保存成功\"";
	}
	
	/** 
	 * 描述：selectMedicineVistor 随访明细
	 * @param jsonArray
	 * @return
	 * @throws Exception
	 * @CreateOn Jul 10, 2012  5:12:42 PM
	 * @author liu_zhaojun
	 */
	public Object selectMedicineVistor(Object jsonArray) throws Exception {
		JSONArray array = JSONArray.fromObject(jsonArray);
		JSONObject jsonObject = JSONObject.fromObject(array.getString(0));
		UserBean user = (UserBean)(this.getRequest()).getSession().getAttribute("userBean");
		String org_id = user.getCurOrgId();
		String tmamvm_id = jsonObject.getString("tmamvm_id");
		StringBuffer buff = new StringBuffer("select b.tmamvd_id,b.tmamvm_id,b.tmamvd_time,b.tmamvd_pharmacy_effect,b.tmamvd_same_pharmacy_des,c.tmgd_name,b.tmamvd_side_effect_code,b.tmamvd_treament,b.create_by from tma_medicine_vistor_main a inner join tma_medicine_vistor_detail b on a.tmamvm_id=b.tmamvm_id");
		buff.append(" and a.org_id='").append(org_id).append("'");
		if(StringUtils.isNotBlank(tmamvm_id)){
			buff.append(" and a.tmamvm_id = '").append(tmamvm_id).append("'");
		}
		buff.append(" inner join tm_general_dictionary c on b.tmamvd_side_effect_code=c.tmgd_id order by b.tmamvd_time desc");
		String[] fields = {"tmamvd_id","tmamvm_id_d","tmamvd_time","tmamvd_pharmacy_effect","tmamvd_same_pharmacy_des","tmgd_name","tmamvd_side_effect_code","tmamvd_treament","create_by"};
		List<Map<String,String>> list = AccessDataBaseUtil.query(fields, buff.toString(), null);
		array = JSONArray.fromObject(list);
		return "{\"Rows\":" + array.toString() + "}";
	}
	
	/** 
	 * 描述：select 查询随访登记主表记录
	 * @param jsonArray
	 * @return
	 * @throws Exception
	 * @CreateOn Jul 10, 2012  5:12:42 PM
	 * @author liu_zhaojun
	 */
	@Override
	public Object select(Object jsonArray) throws Exception {
		UserBean user = (UserBean)(this.getRequest()).getSession().getAttribute("userBean");
		String org_id = user.getCurOrgId();
		StringBuffer buff = new StringBuffer(" from (select * from tma_medicine_vistor_main order by tmamvm_date desc) a inner join tb_employee b on a.tbe_id=b.tbe_id inner join t_department c on a.org_id=c.department_id left join (select d.tmad_id,d.tmad_name,d.tmad_company_name,e.tmgd_name from tma_dictionary d inner join tm_general_dictionary e on d.tmad_kind=e.tmgd_id and d.tmad_status='0' and e.tmgd_type='105') de on a.tmamvm_cmedicine_des=de.tmad_id left join (select h.tmad_id,h.tmad_name from tma_dictionary h where h.tmad_status='0') h on a.tmamvm_lmedicine_des=h.tmad_id left join (select count(*) as num,f.tmamvm_id from (select distinct(substr(tmamvd_time,1,7)),tmamvm_id from tma_medicine_vistor_detail) f group by f.tmamvm_id) g on g.tmamvm_id=a.tmamvm_id");
		buff.append(" where a.org_id='").append(org_id).append("' group by b.tbe_id");
		String countSql = "select count(*)"+buff.toString();
		String querySql = "select g.num as yuqi,c.caption,b.tbe_id,b.tbe_name,b.tbe_address,a.tmamvm_id,a.org_id,a.tmad_id,h.tmad_name as tmamvm_lmedicine_des,a.tmamvm_change_reason,a.tmad_begin_time,de.tmad_name as tmamvm_cmedicine_des,a.tmamvm_date,a.tmamvm_lmedicine_time,de.tmgd_name,de.tmad_name,de.tmad_company_name"+buff.toString();
		String[] fields = {"yuqi","caption","tbe_id","tbe_name","tbe_address","tmamvm_id","org_id","tmad_id","tmamvm_lmedicine_des","tmamvm_change_reason","tmad_begin_time","tmamvm_cmedicine_des","tmamvm_date","tmamvm_lmedicine_time","tmgd_name","tmad_name","tmad_company_name"};
		return AccessDataBaseUtil.query4SQLPagging(fields, countSql, querySql, this.getPage(), this.getPagesize(), null);
	}
	
	/** 
	 * 描述：insert 增加随访明细表记录
	 * @param jsonArray
	 * @return
	 * @throws Exception
	 * @CreateOn Jul 10, 2012  5:12:42 PM
	 * @author liu_zhaojun
	 */
	@Override
	public Object insert(Object jsonArray) throws Exception {
		JSONArray array = JSONArray.fromObject(jsonArray);
		JSONObject jsonObject = JSONObject.fromObject(array.getString(0));
		String tmamvm_id_d = jsonObject.getString("tmamvm_id_d");
		String tmamvd_time = jsonObject.getString("tmamvd_time");
		String tmamvd_pharmacy_effect = jsonObject.getString("tmamvd_pharmacy_effect");
		String tmamvd_same_pharmacy_des = jsonObject.getString("tmamvd_same_pharmacy_des");
		String tmamvd_side_effect_code = jsonObject.getString("tmamvd_side_effect_code");
		String tmamvd_treament = jsonObject.getString("tmamvd_treament");
		String tmamvd_memo = jsonObject.getString("tmamvd_memo");
		String create_by = jsonObject.getString("create_by");
		String time =  FormatUtil.getCurentDateTime();
		String tmad_begin_time = jsonObject.getString("tmad_begin_time");
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
		Date d1 = df.parse(tmad_begin_time);
		Date d2 = df.parse(time.substring(0, time.indexOf(" ")));
		Date d3 = df.parse(tmamvd_time);
        if(d1.getTime()>d3.getTime()||d2.getTime()<d3.getTime()){
        	return "\"随访日期应该在"+tmad_begin_time+"到"+time.substring(0, time.lastIndexOf(" "))+"之间\"";
        }
		StringBuffer buff = new StringBuffer("insert into tma_medicine_vistor_detail(TMAMVD_ID,TMAMVM_ID,TMAMVD_TIME,TMAMVD_PHARMACY_EFFECT,TMAMVD_SAME_PHARMACY_DES,TMAMVD_SIDE_EFFECT_CODE,TMAMVD_SIDE_EFFECT_DES,TMAMVD_TREAMENT,TMAMVD_MEMO,CREATE_BY,CREATE_TIME,LAST_MODIFY_BY,LAST_MODIFY_TIME) values(");
		buff.append("'").append(AccessDataBaseUtil.getPKUUID()).append("'")
		.append(",'").append(tmamvm_id_d).append("'")
		.append(",'").append(tmamvd_time).append("'")
		.append(",'").append(tmamvd_pharmacy_effect).append("'")
		.append(",'").append(tmamvd_same_pharmacy_des).append("'")
		.append(",'").append(tmamvd_side_effect_code).append("'")
		.append(",''")
		.append(",'").append(tmamvd_treament).append("'")
		.append(",'").append(tmamvd_memo).append("'")
		.append(",'").append(create_by).append("'")
		.append(",'").append(time).append("'")
		.append(",'").append(create_by).append("'")
		.append(",'").append(time).append("')");
		AccessDataBaseUtil.executeSQLUpdate(buff.toString());
		return "\"保存成功\"";
	}
	/** 
	 * 描述：update 修改随访登记主表记录
	 * @param jsonArray
	 * @return
	 * @throws Exception
	 * @CreateOn Jul 10, 2012  5:12:42 PM
	 * @author liu_zhaojun
	 */
	@Override
	public Object update(Object jsonArray) throws Exception {
		JSONArray array = JSONArray.fromObject(jsonArray);
		JSONObject jsonObject = JSONObject.fromObject(array.getString(0));
		String tmamvd_id = jsonObject.getString("tmamvd_id");
		String tmamvm_id_d = jsonObject.getString("tmamvm_id_d");
		String tmamvd_time = jsonObject.getString("tmamvd_time");
		String tmamvd_pharmacy_effect = jsonObject.getString("tmamvd_pharmacy_effect");
		String tmamvd_same_pharmacy_des = jsonObject.getString("tmamvd_same_pharmacy_des");
		String tmamvd_side_effect_code = jsonObject.getString("tmamvd_side_effect_code");
		String tmamvd_treament = jsonObject.getString("tmamvd_treament");
		String tmamvd_memo = jsonObject.getString("tmamvd_memo");
		String create_by = jsonObject.getString("create_by");
		String time =  FormatUtil.getCurentDateTime();
		String tmad_begin_time = jsonObject.getString("tmad_begin_time");
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
		Date d1 = df.parse(tmad_begin_time);
		Date d2 = df.parse(time.substring(0, time.indexOf(" ")));
		Date d3 = df.parse(tmamvd_time);
        if(d1.getTime()>d3.getTime()||d2.getTime()<d3.getTime()){
        	return "\"随访日期应该在"+tmad_begin_time+"到"+time.substring(0, time.lastIndexOf(" "))+"之间\"";
        }
		StringBuffer buff = new StringBuffer("update tma_medicine_vistor_detail set ");
		buff.append("TMAMVM_ID='").append(tmamvm_id_d).append("'")
		.append(",TMAMVD_TIME='").append(tmamvd_time).append("'")
		.append(",TMAMVD_PHARMACY_EFFECT='").append(tmamvd_pharmacy_effect).append("'")
		.append(",TMAMVD_SAME_PHARMACY_DES='").append(tmamvd_same_pharmacy_des).append("'")
		.append(",TMAMVD_SIDE_EFFECT_CODE='").append(tmamvd_side_effect_code).append("'")
		.append(",TMAMVD_SIDE_EFFECT_DES=''")
		.append(",TMAMVD_TREAMENT='").append(tmamvd_treament).append("'")
		.append(",TMAMVD_MEMO='").append(tmamvd_memo).append("'")
		.append(",LAST_MODIFY_BY='").append(create_by).append("'")
		.append(",LAST_MODIFY_TIME='").append(time).append("'")
		.append(" where TMAMVD_ID='").append(tmamvd_id).append("'");
		AccessDataBaseUtil.executeSQLUpdate(buff.toString());
		return "\"修改成功\"";
	}
	
	/** 
	 * 描述：delete 删除随访登记主表记录
	 * @param jsonArray
	 * @return
	 * @throws Exception
	 * @CreateOn Jul 10, 2012  5:12:42 PM
	 * @author liu_zhaojun
	 */
	@Override
	public Object delete(Object jsonArray) throws Exception {
		JSONArray array = JSONArray.fromObject(jsonArray);
		JSONObject jsonObject = JSONObject.fromObject(array.getString(0));
		String id = jsonObject.getString("ids");
		String[] ids = id.split(",");
		sql = "delete from tma_medicine_vistor_main where tmamvm_id = ?";		
		AccessDataBaseUtil.deleteByIds(sql, ids);
		return "\"删除成功\"";
	}
	
	/** 
	 * 描述：detailDelete 删除随访登记明细表记录
	 * @param jsonArray
	 * @return
	 * @throws Exception
	 * @CreateOn Jul 10, 2012  5:12:42 PM
	 * @author liu_zhaojun
	 */
	public Object detailDelete(Object jsonArray) throws Exception {
		JSONArray array = JSONArray.fromObject(jsonArray);
		JSONObject jsonObject = JSONObject.fromObject(array.getString(0));
		String id = jsonObject.getString("ids");
		String[] ids = id.split(",");
		sql = "delete from tma_medicine_vistor_detail where tmamvd_id = ?";		
		AccessDataBaseUtil.deleteByIds(sql, ids);
		return "\"删除成功\"";
	}

	@Override
	public Object recordCount(Object jsonArray) throws Exception {
		return null;
	}

	@Override
	public Object setRequest(HttpServletRequest request) throws Exception {
		this.request = request;
		return request;
	}

	@Override
	public Object updateBatch(Object jsonArray) throws Exception {
		return null;
	}

	@Override
	public Object onCreate(Object jsonArray) {
		return null;
	}

	@Override
	public Object onDestory(Object jsonArray) {
		return null;
	}

	@Override
	public Object onInit(Object jsonArray) {
		return null;
	}
}


